package cn.iocoder.yudao.module.moa.controller.admin.qjapplysub.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - MOA 请假关联新增/修改 Request VO")
@Data
public class QjApplySubSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "3908")
    private Long id;

    @Schema(description = "请假单号", requiredMode = Schema.RequiredMode.REQUIRED, example = "19972")
    @NotNull(message = "请假单号不能为空")
    private Long qjdId;

    @Schema(description = "请假类型(事假、婚嫁等)", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "请假类型(事假、婚嫁等)不能为空")
    private Integer qjLx;

    @Schema(description = "开始时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "开始时间不能为空")
    private LocalDateTime startTime;

    @Schema(description = "结束时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "结束时间不能为空")
    private LocalDateTime endTime;

    @Schema(description = "时长(小时)", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "时长(小时)不能为空")
    private BigDecimal totalTime;

}